Skip to content

Rust

Tutorials

Rust + Python

From the post above:

  1. Create a single repository containing both Rust and Python projects
  2. Use maturin & PyO3 to create Python-callable translator functions in Rust
  3. Have the Rust translator functions call “nice” Rust functions
  4. Preallocate memory in Python
  5. Translate nice Rust error handling into nice Python error handling
  6. Multithread with Rayon and ndarray::parallel, returning any errors
  7. Allow users to control the number of parallel threads
  8. Translate nice dynamically-type Python functions into nice Rust generic functions
  9. Create both Rust and Python tests

Cons of Rust

Page last modified: 2024-11-15 09:46:28